<!DOCTYPE html>
<html lang="en" data-scrapbook-source="https://github.com/iamkun/dayjs/blob/dev/docs/zh-cn/API-reference.md" data-scrapbook-create="20200112074040727">

<head>
    <meta charset="UTF-8">

    <link media="all" rel="stylesheet" href="css/frameworks-02a3eaa24db2bd1ed9b64450595fc2cf.css">
    <link media="all" rel="stylesheet" href="css/github-be4e45349cf088df7a6636f437c0a167.css">
    <link rel="icon" type="image/x-icon" class="js-site-favicon" href="favicon.ico">



    <meta name="viewport" content="width=device-width">

    <title>dayjs/API-reference.md at dev · iamkun/dayjs</title>
    <meta name="description" content="⏰ Day.js 2KB immutable date library alternative to Moment.js with the same modern API - iamkun/dayjs">


    <meta name="selected-link" value="repo_source" data-pjax-transient="">

    <link href="https://github.com/iamkun/dayjs/commits/dev.atom" rel="alternate" title="Recent Commits to dayjs:dev" type="application/atom+xml">

    <meta name="go-import" content="github.com/iamkun/dayjs git https://github.com/iamkun/dayjs.git">

    <meta name="octolytics-dimension-user_id" content="17680888">
    <meta name="octolytics-dimension-user_login" content="iamkun">
    <meta name="octolytics-dimension-repository_id" content="128907699">
    <meta name="octolytics-dimension-repository_nwo" content="iamkun/dayjs">
    <meta name="octolytics-dimension-repository_public" content="true">
    <meta name="octolytics-dimension-repository_is_fork" content="false">
    <meta name="octolytics-dimension-repository_network_root_id" content="128907699">
    <meta name="octolytics-dimension-repository_network_root_nwo" content="iamkun/dayjs">
    <meta name="octolytics-dimension-repository_explore_github_marketplace_ci_cta_shown" content="false">


    <link rel="canonical" href="https://github.com/iamkun/dayjs/blob/dev/docs/zh-cn/API-reference.md" data-pjax-transient="">


    <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">

    <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">

    <link rel="mask-icon" href="https://github.githubassets.com/pinned-octocat.svg" color="#000000">


    <meta name="theme-color" content="#1e2327">


</head>

<body class="logged-in env-production page-responsive page-blob">
    <div class="application-main " data-commit-hovercards-enabled="">
        <div itemscope="" itemtype="http://schema.org/SoftwareSourceCode" class="">
            <main>
                <div class="container-lg clearfix new-discussion-timeline experiment-repo-nav  p-responsive">
                    <div class="repository-content ">
                        <div class="Box mt-3 position-relative">
                            <div id="readme" class="Box-body readme blob js-code-block-container">
                                <article class="markdown-body entry-content p-3 p-md-6" itemprop="text">
                                    <!--scrapbook-capture-selected-->
                                    <h2>dayjs API</h2>
                                    <p><code>Dayjs</code> 并没有改变或覆盖 Javascript 原生的 <code>Date.prototype</code>， 而是创造了一个全新的包含 <code>Javascript Date</code> 对象的 <code>Dayjs</code> 的对象。</p>
                                    <p><code>Dayjs</code> 对象是不可变的, 所有的 API 操作都将返回一个新的 <code>Dayjs</code> 对象。</p>
                                    <ul>
                                        <li><a href="#%E8%A7%A3%E6%9E%90">解析</a>
                                            <ul>
                                                <li><a href="#%E5%BD%93%E5%89%8D%E6%97%B6%E9%97%B4">当前时间</a></li>
                                                <li><a href="#%E6%97%B6%E9%97%B4%E5%AD%97%E7%AC%A6%E4%B8%B2">时间字符串</a></li>
                                                <li><a href="#date-%E5%AF%B9%E8%B1%A1">Date 对象</a></li>
                                                <li><a href="#unix-%E6%97%B6%E9%97%B4%E6%88%B3-%E6%AF%AB%E7%A7%92">Unix 时间戳 (毫秒)</a></li>
                                                <li><a href="#unix-%E6%97%B6%E9%97%B4%E6%88%B3-%E7%A7%92">Unix 时间戳 (秒)</a></li>
                                                <li><a href="#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F">自定义时间格式</a></li>
                                                <li><a href="#%E5%A4%8D%E5%88%B6">复制</a></li>
                                                <li><a href="#%E9%AA%8C%E8%AF%81">验证</a></li>
                                            </ul>
                                        </li>
                                        <li><a href="#%E8%8E%B7%E5%8F%96%E8%AE%BE%E7%BD%AE">获取+设置</a>
                                            <ul>
                                                <li><a href="#%E5%B9%B4">年</a></li>
                                                <li><a href="#%E6%9C%88">月</a></li>
                                                <li><a href="#%E6%97%A5">日</a></li>
                                                <li><a href="#%E6%98%9F%E6%9C%9F">星期</a></li>
                                                <li><a href="#%E6%97%B6">时</a></li>
                                                <li><a href="#%E5%88%86">分</a></li>
                                                <li><a href="#%E7%A7%92">秒</a></li>
                                                <li><a href="#%E6%AF%AB%E7%A7%92">毫秒</a></li>
                                                <li><a href="#%E8%8E%B7%E5%8F%96">获取</a></li>
                                                <li><a href="#%E8%AE%BE%E7%BD%AE">设置</a></li>
                                            </ul>
                                        </li>
                                        <li><a href="#%E6%93%8D%E4%BD%9C">操作</a>
                                            <ul>
                                                <li><a href="#%E5%A2%9E%E5%8A%A0">增加</a></li>
                                                <li><a href="#%E5%87%8F%E5%B0%91">减少</a></li>
                                                <li><a href="#%E5%BC%80%E5%A4%B4%E6%97%B6%E9%97%B4">开头时间</a></li>
                                                <li><a href="#%E6%9C%AB%E5%B0%BE%E6%97%B6%E9%97%B4">末尾时间</a></li>
                                            </ul>
                                        </li>
                                        <li><a href="#%E6%98%BE%E7%A4%BA">显示</a>
                                            <ul>
                                                <li><a href="#%E6%A0%BC%E5%BC%8F%E5%8C%96">格式化</a></li>
                                                <li><a href="#%E6%97%B6%E9%97%B4%E5%B7%AE">时间差</a></li>
                                                <li><a href="#unix-%E6%97%B6%E9%97%B4%E6%88%B3-%E6%AF%AB%E7%A7%92-1">Unix 时间戳 (毫秒)</a></li>
                                                <li><a href="#unix-%E6%97%B6%E9%97%B4%E6%88%B3-%E7%A7%92">Unix 时间戳 (秒)</a></li>
                                                <li><a href="#utc-%E5%81%8F%E7%A7%BB%E9%87%8F-%E5%88%86">UTC 偏移量 (分)</a></li>
                                                <li><a href="#%E5%A4%A9%E6%95%B0-%E6%9C%88">天数 (月)</a></li>
                                                <li><a href="#date-%E5%AF%B9%E8%B1%A1-1">Date 对象</a></li>
                                                <li><a href="#as-json">JSON</a></li>
                                                <li><a href="#iso-8601-%E5%AD%97%E7%AC%A6%E4%B8%B2">ISO 8601 字符串</a></li>
                                                <li><a href="#%E5%AD%97%E7%AC%A6%E4%B8%B2">字符串</a></li>
                                            </ul>
                                        </li>
                                        <li><a href="#%E6%9F%A5%E8%AF%A2">查询</a>
                                            <ul>
                                                <li><a href="#%E6%98%AF%E5%90%A6%E4%B9%8B%E5%89%8D">是否之前</a></li>
                                                <li><a href="#%E6%98%AF%E5%90%A6%E7%9B%B8%E5%90%8C">是否相同</a></li>
                                                <li><a href="#%E6%98%AF%E5%90%A6%E4%B9%8B%E5%90%8E">是否之后</a></li>
                                                <li><a href="#%E6%98%AF%E5%90%A6%E6%98%AF-dayjs-isdayjscompared-any">是否是 Dayjs <code>.isDayjs()</code></a></li>
                                            </ul>
                                        </li>
                                        <li><a href="#utc">UTC</a></li>
                                        <li><a href="#插件-apis">插件 APIs</a></li>
                                    </ul>
                                    <hr>
                                    <p>如果没有特别说明，Day.js 的返回值都是新的 <code>Dayjs</code> 对象。</p>
                                    <h3><a id="解析" class="anchor" aria-hidden="true" href="#解析"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>解析</h3>
                                    <p>在 <code>dayjs()</code> 中传入支持的格式</p>
                                    <h4><a id="当前时间" class="anchor" aria-hidden="true" href="#当前时间"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>当前时间</h4>
                                    <p>直接运行 <code>dayjs()</code>，得到包含当前时间和日期的 <code>Dayjs</code> 对象。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="时间字符串" class="anchor" aria-hidden="true" href="#时间字符串"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>时间字符串</h3>
                                    <p>可以解析传入的一个标准的<a href="https://en.wikipedia.org/wiki/ISO_8601" rel="nofollow">ISO 8601</a>时间字符串。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-v">String</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-s">'1995-12-25'</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="date-对象" class="anchor" aria-hidden="true" href="#date-对象"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Date
                                        对象
                                    </h3>
                                    <p>可以解析传入的一个 Javascript Date 对象。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-v">Date</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Date</span><span class="pl-kos">(</span><span class="pl-c1">2018</span><span class="pl-kos">,</span> <span class="pl-c1">8</span><span class="pl-kos">,</span> <span class="pl-c1">18</span><span class="pl-kos">)</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="unix-时间戳-毫秒" class="anchor" aria-hidden="true" href="#unix-时间戳-毫秒"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Unix
                                        时间戳 (毫秒)</h3>
                                    <p>可以解析传入的一个 Unix 时间戳 (13 位数字)。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-v">Number</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-c1">1318781876406</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="unix-时间戳-秒" class="anchor" aria-hidden="true" href="#unix-时间戳-秒"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Unix
                                        时间戳 (秒)</h3>
                                    <p>可以解析传入的一个 Unix 时间戳 (10 位数字)。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-s1">dayjs</span><span class="pl-kos">.</span><span class="pl-en">unix</span><span class="pl-kos">(</span><span class="pl-v">Number</span><span class="pl-kos">)</span>
<span class="pl-s1">dayjs</span><span class="pl-kos">.</span><span class="pl-en">unix</span><span class="pl-kos">(</span><span class="pl-c1">1318781876</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="自定义时间格式" class="anchor" aria-hidden="true" href="#自定义时间格式"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>自定义时间格式</h3>
                                    <ul>
                                        <li>解析自定义时间格式如 <code>dayjs("12-25-1995", "MM-DD-YYYY")</code> 可以使用插件 <a href="Plugin.html#customparseformat"><code>CustomParseFormat</code></a></li>
                                    </ul>
                                    <h3><a id="复制" class="anchor" aria-hidden="true" href="#复制"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>复制</h3>
                                    <p><code>Dayjs</code> 对象是不可变的，如果您想获得一个对象的拷贝，请执行 <code>.clone()</code>。 向 <code>dayjs()</code> 里传入一个 <code>Dayjs</code> 对象也能实现同样的效果。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-v">Dayjs</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="验证" class="anchor" aria-hidden="true" href="#验证"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>验证</h3>
                                    <ul>
                                        <li>return Boolean</li>
                                    </ul>
                                    <p>检测当前 <code>Dayjs</code> 对象是否是一个有效的时间。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isValid</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <hr>
                                    <h3><a id="获取设置" class="anchor" aria-hidden="true" href="#获取设置"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>获取+设置</h3>
                                    <p>获取和改变日期。</p>
                                    <h4><a id="年" class="anchor" aria-hidden="true" href="#年"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>年</h4>
                                    <p>获取或设置年份。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">year</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">year</span><span class="pl-kos">(</span><span class="pl-c1">2000</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="月" class="anchor" aria-hidden="true" href="#月"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>月</h4>
                                    <p>获取或设置月份。从 0 开始</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">month</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">month</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="日" class="anchor" aria-hidden="true" href="#日"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>日</h4>
                                    <p>获取或设置日期。从 1 开始</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">date</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">date</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="星期" class="anchor" aria-hidden="true" href="#星期"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>星期</h4>
                                    <p>获取或设置星期。从星期天 0 开始</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">day</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">day</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="时" class="anchor" aria-hidden="true" href="#时"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>时</h4>
                                    <p>获取或设置小时。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">hour</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">hour</span><span class="pl-kos">(</span><span class="pl-c1">12</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="分" class="anchor" aria-hidden="true" href="#分"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>分</h4>
                                    <p>获取或设置分钟。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">minute</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">minute</span><span class="pl-kos">(</span><span class="pl-c1">59</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="秒" class="anchor" aria-hidden="true" href="#秒"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>秒</h4>
                                    <p>获取或设置秒。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">second</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">second</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="毫秒" class="anchor" aria-hidden="true" href="#毫秒"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>毫秒</h4>
                                    <p>获取或设置毫秒。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">millisecond</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">millisecond</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="获取" class="anchor" aria-hidden="true" href="#获取"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>获取</h4>
                                    <p>获取从 <code>Dayjs</code> 对象中取到的信息 传入的单位 (unit) 对大小写不敏感。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">unit</span> : <span class="pl-v">String</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'month'</span><span class="pl-kos">)</span> <span class="pl-c">// 从 0 开始</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'day'</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="可用单位" class="anchor" aria-hidden="true" href="#可用单位"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>可用单位</h4>
                                    <table>
                                        <thead>
                                            <tr>
                                                <th>单位</th>
                                                <th>缩写</th>
                                                <th>描述</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td><code>date</code></td>
                                                <td></td>
                                                <td>日期</td>
                                            </tr>
                                            <tr>
                                                <td><code>day</code></td>
                                                <td><code>d</code></td>
                                                <td>星期几 (星期天 0, 星期六 6)</td>
                                            </tr>
                                            <tr>
                                                <td><code>month</code></td>
                                                <td><code>M</code></td>
                                                <td>月 (一月 0, 十二月 11)</td>
                                            </tr>
                                            <tr>
                                                <td><code>year</code></td>
                                                <td><code>y</code></td>
                                                <td>年</td>
                                            </tr>
                                            <tr>
                                                <td><code>hour</code></td>
                                                <td><code>h</code></td>
                                                <td>时</td>
                                            </tr>
                                            <tr>
                                                <td><code>minute</code></td>
                                                <td><code>m</code></td>
                                                <td>分</td>
                                            </tr>
                                            <tr>
                                                <td><code>second</code></td>
                                                <td><code>s</code></td>
                                                <td>秒</td>
                                            </tr>
                                            <tr>
                                                <td><code>millisecond</code></td>
                                                <td><code>ms</code></td>
                                                <td>毫秒</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <h4><a id="设置" class="anchor" aria-hidden="true" href="#设置"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>设置</h4>
                                    <p>设置时间</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">unit</span> : <span class="pl-v">String</span><span class="pl-kos">,</span> <span class="pl-s1">value</span> : <span class="pl-v">Int</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'date'</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'month'</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 四月</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">'second'</span><span class="pl-kos">,</span> <span class="pl-c1">30</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
                                    <h3><a id="操作" class="anchor" aria-hidden="true" href="#操作"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>操作</h3>
                                    <p>您可以对 <code>Dayjs</code> 对象如下增加减少之类的操作：</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
  <span class="pl-kos">.</span><span class="pl-en">startOf</span><span class="pl-kos">(</span><span class="pl-s">'month'</span><span class="pl-kos">)</span>
  <span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">'day'</span><span class="pl-kos">)</span>
  <span class="pl-kos">.</span><span class="pl-en">subtract</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">'year'</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="增加" class="anchor" aria-hidden="true" href="#增加"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>增加</h4>
                                    <p>增加时间并返回一个新的 <code>Dayjs()</code> 对象。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">value</span> : <span class="pl-v">Number</span><span class="pl-kos">,</span> <span class="pl-s1">unit</span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-c1">7</span><span class="pl-kos">,</span> <span class="pl-s">'day'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
                                    <h4><a id="减少" class="anchor" aria-hidden="true" href="#减少"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>减少</h4>
                                    <p>减少时间并返回一个新的 <code>Dayjs()</code> 对象。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">subtract</span><span class="pl-kos">(</span><span class="pl-s1">value</span> : <span class="pl-v">Number</span><span class="pl-kos">,</span> <span class="pl-s1">unit</span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">subtract</span><span class="pl-kos">(</span><span class="pl-c1">7</span><span class="pl-kos">,</span> <span class="pl-s">'year'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
                                    <h4><a id="开头时间" class="anchor" aria-hidden="true" href="#开头时间"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>开头时间</h4>
                                    <p>返回当前时间的开头时间的 <code>Dayjs()</code> 对象，如月份的第一天。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">startOf</span><span class="pl-kos">(</span><span class="pl-s1">unit</span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">startOf</span><span class="pl-kos">(</span><span class="pl-s">'week'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 取决于 locale 文件里 `weekStart` 的值</span></pre></div>
                                    <h4><a id="末尾时间" class="anchor" aria-hidden="true" href="#末尾时间"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>末尾时间</h4>
                                    <p>返回当前时间的末尾时间的 <code>Dayjs()</code> 对象，如月份的最后一天。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">endOf</span><span class="pl-kos">(</span><span class="pl-s1">unit</span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">endOf</span><span class="pl-kos">(</span><span class="pl-s">'month'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
                                    <hr>
                                    <h3><a id="显示" class="anchor" aria-hidden="true" href="#显示"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>显示</h3>
                                    <p>格式化 <code>Dayjs</code> 对象并展示。</p>
                                    <h4><a id="格式化" class="anchor" aria-hidden="true" href="#格式化"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>格式化</h4>
                                    <ul>
                                        <li>return String</li>
                                    </ul>
                                    <p>接收一系列的时间日期字符串并替换成相应的值。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-v">String</span><span class="pl-kos">)</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-s">'2019-01-25'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-s">'[YYYY] YYYY-MM-DDTHH:mm:ssZ[Z]'</span><span class="pl-kos">)</span> <span class="pl-c">// 'YYYY 2019-01-25T00:00:00-02:00Z'</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-s">'{YYYY} MM-DDTHH:mm:ssZ[Z]'</span><span class="pl-kos">)</span> <span class="pl-c">// "{2014} 09-08T08:02:17-05:00Z"</span></pre></div>
                                    <p>详情如下:</p>
                                    <table>
                                        <thead>
                                            <tr>
                                                <th>格式</th>
                                                <th>输出</th>
                                                <th>描述</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td><code>YY</code></td>
                                                <td>18</td>
                                                <td>两位数的年份</td>
                                            </tr>
                                            <tr>
                                                <td><code>YYYY</code></td>
                                                <td>2018</td>
                                                <td>四位数的年份</td>
                                            </tr>
                                            <tr>
                                                <td><code>M</code></td>
                                                <td>1-12</td>
                                                <td>月份，从 1 开始</td>
                                            </tr>
                                            <tr>
                                                <td><code>MM</code></td>
                                                <td>01-12</td>
                                                <td>月份，两位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>MMM</code></td>
                                                <td>Jan-Dec</td>
                                                <td>简写的月份名称</td>
                                            </tr>
                                            <tr>
                                                <td><code>MMMM</code></td>
                                                <td>January-December</td>
                                                <td>完整的月份名称</td>
                                            </tr>
                                            <tr>
                                                <td><code>D</code></td>
                                                <td>1-31</td>
                                                <td>月份里的一天</td>
                                            </tr>
                                            <tr>
                                                <td><code>DD</code></td>
                                                <td>01-31</td>
                                                <td>月份里的一天，两位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>d</code></td>
                                                <td>0-6</td>
                                                <td>一周中的一天，星期天是 0</td>
                                            </tr>
                                            <tr>
                                                <td><code>dd</code></td>
                                                <td>Su-Sa</td>
                                                <td>最简写的一周中一天的名称</td>
                                            </tr>
                                            <tr>
                                                <td><code>ddd</code></td>
                                                <td>Sun-Sat</td>
                                                <td>简写的一周中一天的名称</td>
                                            </tr>
                                            <tr>
                                                <td><code>dddd</code></td>
                                                <td>Sunday-Saturday</td>
                                                <td>一周中一天的名称</td>
                                            </tr>
                                            <tr>
                                                <td><code>H</code></td>
                                                <td>0-23</td>
                                                <td>小时</td>
                                            </tr>
                                            <tr>
                                                <td><code>HH</code></td>
                                                <td>00-23</td>
                                                <td>小时，两位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>h</code></td>
                                                <td>1-12</td>
                                                <td>小时, 12 小时制</td>
                                            </tr>
                                            <tr>
                                                <td><code>hh</code></td>
                                                <td>01-12</td>
                                                <td>Hours, 12 小时制, 两位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>m</code></td>
                                                <td>0-59</td>
                                                <td>分钟</td>
                                            </tr>
                                            <tr>
                                                <td><code>mm</code></td>
                                                <td>00-59</td>
                                                <td>分钟，两位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>s</code></td>
                                                <td>0-59</td>
                                                <td>秒</td>
                                            </tr>
                                            <tr>
                                                <td><code>ss</code></td>
                                                <td>00-59</td>
                                                <td>秒 两位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>SSS</code></td>
                                                <td>000-999</td>
                                                <td>毫秒 三位数</td>
                                            </tr>
                                            <tr>
                                                <td><code>Z</code></td>
                                                <td>+05:00</td>
                                                <td>UTC 的偏移量</td>
                                            </tr>
                                            <tr>
                                                <td><code>ZZ</code></td>
                                                <td>+0500</td>
                                                <td>UTC 的偏移量，数字前面加上 0</td>
                                            </tr>
                                            <tr>
                                                <td><code>A</code></td>
                                                <td>AM PM</td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td><code>a</code></td>
                                                <td>am pm</td>
                                                <td></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <ul>
                                        <li>更多格式化的选项 <code>Q Do k kk X x ...</code> 可以使用插件 <a href="Plugin.html#advancedformat"><code>AdvancedFormat</code></a></li>
                                        <li>本地化的长日期格式 <code>L LT LTS ...</code> 可以使用插件 <a href="Plugin.html#localizedFormat"><code>LocalizedFormat</code></a></li>
                                    </ul>
                                    <h4><a id="时间差" class="anchor" aria-hidden="true" href="#时间差"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>时间差</h4>
                                    <ul>
                                        <li>return Number</li>
                                    </ul>
                                    <p>获取两个 <code>Dayjs</code> 对象的时间差，默认毫秒。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-k">const</span> <span class="pl-s1">date1</span> <span class="pl-c1">=</span> <span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-s">'2019-01-25'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">date2</span> <span class="pl-c1">=</span> <span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-s">'2018-06-05'</span><span class="pl-kos">)</span>
<span class="pl-s1">date1</span><span class="pl-kos">.</span><span class="pl-en">diff</span><span class="pl-kos">(</span><span class="pl-s1">date2</span><span class="pl-kos">)</span> <span class="pl-c">// 20214000000</span>
<span class="pl-s1">date1</span><span class="pl-kos">.</span><span class="pl-en">diff</span><span class="pl-kos">(</span><span class="pl-s1">date2</span><span class="pl-kos">,</span> <span class="pl-s">'month'</span><span class="pl-kos">)</span> <span class="pl-c">// 7</span>
<span class="pl-s1">date1</span><span class="pl-kos">.</span><span class="pl-en">diff</span><span class="pl-kos">(</span><span class="pl-s1">date2</span><span class="pl-kos">,</span> <span class="pl-s">'month'</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-c">// 7.645161290322581</span>
<span class="pl-s1">date1</span><span class="pl-kos">.</span><span class="pl-en">diff</span><span class="pl-kos">(</span><span class="pl-s1">date2</span><span class="pl-kos">,</span> <span class="pl-s">'day'</span><span class="pl-kos">)</span> <span class="pl-c">// 233</span></pre></div>
                                    <h4><a id="unix-时间戳-毫秒-1" class="anchor" aria-hidden="true" href="#unix-时间戳-毫秒-1"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Unix
                                        时间戳 (毫秒)</h4>
                                    <ul>
                                        <li>return Number</li>
                                    </ul>
                                    <p>返回 Unix 时间戳 (毫秒)</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">valueOf</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="unix-时间戳-秒-1" class="anchor" aria-hidden="true" href="#unix-时间戳-秒-1"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Unix
                                        时间戳 (秒)</h4>
                                    <ul>
                                        <li>return Number</li>
                                    </ul>
                                    <p>返回 Unix 时间戳 (秒)。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">unix</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h3><a id="utc-偏移量-分" class="anchor" aria-hidden="true" href="#utc-偏移量-分"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>UTC
                                        偏移量 (分)</h3>
                                    <p>返回 UTC 偏移量 (分)</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">utcOffset</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="天数-月" class="anchor" aria-hidden="true" href="#天数-月"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>天数
                                        (月)
                                    </h4>
                                    <ul>
                                        <li>return Number</li>
                                    </ul>
                                    <p>返回月份的天数。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">daysInMonth</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="date-对象-1" class="anchor" aria-hidden="true" href="#date-对象-1"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Date
                                        对象
                                    </h4>
                                    <ul>
                                        <li>return Javascript <code>Date</code> object</li>
                                    </ul>
                                    <p>返回原生的 <code>Date</code> 对象。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toDate</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="as-json" class="anchor" aria-hidden="true" href="#as-json"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>As
                                        JSON
                                    </h4>
                                    <ul>
                                        <li>return JSON String</li>
                                    </ul>
                                    <p>当序列化 <code>Dayjs</code> 对象时，会返回 ISO8601 格式的字符串。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toJSON</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">//"2018-08-08T00:00:00.000Z"</span></pre></div>
                                    <h4><a id="iso-8601-字符串" class="anchor" aria-hidden="true" href="#iso-8601-字符串"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>ISO
                                        8601 字符串</h4>
                                    <ul>
                                        <li>return String</li>
                                    </ul>
                                    <p>返回 ISO8601 格式的字符串。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toISOString</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <h4><a id="字符串" class="anchor" aria-hidden="true" href="#字符串"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>字符串</h4>
                                    <ul>
                                        <li>return String</li>
                                    </ul>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
                                    <hr>
                                    <h3><a id="查询" class="anchor" aria-hidden="true" href="#查询"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>查询</h3>
                                    <h4><a id="是否之前" class="anchor" aria-hidden="true" href="#是否之前"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否之前</h4>
                                    <ul>
                                        <li>return Boolean</li>
                                    </ul>
                                    <p>检查一个 <code>Dayjs</code> 对象是否在另一个 <code>Dayjs</code> 对象时间之前。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isBefore</span><span class="pl-kos">(</span><span class="pl-v">Dayjs</span><span class="pl-kos">,</span> <span class="pl-s1">unit</span>?<span class="pl-s1"></span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isBefore</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// false</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isBefore</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">'year'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// false</span></pre></div>
                                    <h4><a id="是否相同" class="anchor" aria-hidden="true" href="#是否相同"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否相同</h4>
                                    <ul>
                                        <li>return Boolean</li>
                                    </ul>
                                    <p>检查一个 <code>Dayjs</code> 对象是否和另一个 <code>Dayjs</code> 对象时间相同。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isSame</span><span class="pl-kos">(</span><span class="pl-v">Dayjs</span><span class="pl-kos">,</span> <span class="pl-s1">unit</span>?<span class="pl-s1"></span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isSame</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// true</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isSame</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">'year'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// true</span></pre></div>
                                    <h4><a id="是否之后" class="anchor" aria-hidden="true" href="#是否之后"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否之后</h4>
                                    <ul>
                                        <li>return Boolean</li>
                                    </ul>
                                    <p>检查一个 <code>Dayjs</code> 对象是否在另一个 <code>Dayjs</code> 对象时间之后。</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isAfter</span><span class="pl-kos">(</span><span class="pl-v">Dayjs</span><span class="pl-kos">,</span> <span class="pl-s1">unit</span>?<span class="pl-s1"></span> : <span class="pl-v">String</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isAfter</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// false</span>
<span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isAfter</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">'year'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// false</span></pre></div>
                                    <h3><a id="是否是-dayjs-isdayjscompared-any" class="anchor" aria-hidden="true" href="#是否是-dayjs-isdayjscompared-any"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否是
                                        Dayjs <code>.isDayjs(compared: any)</code></h3>
                                    <p>返回一个 <code>boolean</code> 验证传入值是否是一个 Dayjs 对象.</p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-s1">dayjs</span><span class="pl-kos">.</span><span class="pl-en">isDayjs</span><span class="pl-kos">(</span><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// true</span>
<span class="pl-s1">dayjs</span><span class="pl-kos">.</span><span class="pl-en">isDayjs</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// false</span></pre></div>
                                    <p>也可以使用 <code>instanceof</code></p>
                                    <div class="highlight highlight-source-js"><pre><span class="pl-en">dayjs</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">instanceof</span> <span class="pl-s1">dayjs</span> <span class="pl-c">// true</span></pre></div>
                                    <h2><a id="utc" class="anchor" aria-hidden="true" href="#utc"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>UTC</h2>
                                    <p>如果想要使用 UTC 模式来解析和展示时间，<code>.utc</code> <code>.local</code> <code>.isUTC</code> 可以使用插件 <a href="Plugin.html#utc"><code>UTC</code></a></p>
                                    <h2><a id="插件-apis" class="anchor" aria-hidden="true" href="#插件-apis"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>插件
                                        APIs
                                    </h2>
                                    <h3><a id="相对时间" class="anchor" aria-hidden="true" href="#相对时间"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>相对时间</h3>
                                    <p><code>.from</code> <code>.to</code> <code>.fromNow</code> <code>.toNow</code> 获得相对时间</p>
                                    <p>插件 <a href="Plugin.html#relativetime"><code>RelativeTime</code></a></p>
                                    <h3><a id="是否是闰年" class="anchor" aria-hidden="true" href="#是否是闰年"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否是闰年</h3>
                                    <p><code>.isLeapYear</code> 获得是否闰年</p>
                                    <p>插件 <a href="Plugin.html#isleapyear"><code>IsLeapYear</code></a></p>
                                    <h3><a id="年中的第几周" class="anchor" aria-hidden="true" href="#年中的第几周"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>年中的第几周</h3>
                                    <p><code>.week</code> 获取是第几个周</p>
                                    <p>插件 <a href="Plugin.html#weekofyear"><code>WeekOfYear</code></a></p>
                                    <h3><a id="星期-1" class="anchor" aria-hidden="true" href="#星期-1"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>星期</h3>
                                    <p><code>.weekday</code> 来获取或设置当前语言的星期</p>
                                    <p>plugin <a href="Plugin.html#weekday"><code>WeekDay</code></a></p>
                                    <h3><a id="年中有几周-iso" class="anchor" aria-hidden="true" href="#年中有几周-iso"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>年中有几周
                                        ISO
                                    </h3>
                                    <p><code>.isoWeeksInYear</code> 获得年中有几周</p>
                                    <p>plugin <a href="Plugin.html#isoweeksinyear"><code>IsoWeeksInYear</code></a></p>
                                    <h3><a id="是否相同或之后" class="anchor" aria-hidden="true" href="#是否相同或之后"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否相同或之后</h3>
                                    <p><code>.isSameOrAfter</code> 返回一个时间和一个时间相同或在一个时间之后</p>
                                    <p>插件 <a href="Plugin.html#issameorafter"><code>IsSameOrAfter</code></a></p>
                                    <h3><a id="是否相同或之前" class="anchor" aria-hidden="true" href="#是否相同或之前"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否相同或之前</h3>
                                    <p><code>.isSameOrBefore</code> 返回一个时间是否和一个时间相同或在一个时间之前</p>
                                    <p>插件 <a href="Plugin.html#issameorbefore"><code>IsSameOrBefore</code></a></p>
                                    <h3><a id="是否之间" class="anchor" aria-hidden="true" href="#是否之间"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>是否之间</h3>
                                    <p><code>.isBetween</code> 返回一个时间是否介于两个时间之间</p>
                                    <p>插件 <a href="Plugin.html#isbetween"><code>IsBetween</code></a></p>
                                    <h3><a id="年中第几季度" class="anchor" aria-hidden="true" href="#年中第几季度"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>年中第几季度</h3>
                                    <p><code>.quarter</code> 返回年中第几季度</p>
                                    <p>插件 <a href="Plugin.html#quarterofyear"><code>QuarterOfYear</code></a></p>
                                    <h3><a id="转成数组" class="anchor" aria-hidden="true" href="#转成数组"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>转成数组</h3>
                                    <p><code>.toArray</code> 返回包含时间数值的数组。</p>
                                    <p>插件 <a href="Plugin.html#toarray"><code>ToArray</code></a></p>
                                    <h3><a id="转成对象" class="anchor" aria-hidden="true" href="#转成对象"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>转成对象</h3>
                                    <p><code>.toObject</code> 返回包含时间数值的对象</p>
                                    <p>插件 <a href="Plugin.html#toobject"><code>ToObject</code></a></p>
                                    <h3><a id="最小最大" class="anchor" aria-hidden="true" href="#最小最大"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>最小最大</h3>
                                    <p><code>.min</code> <code>.max</code> 比较传入的 dayjs 实例的大小</p>
                                    <p>plugin <a href="Plugin.html#minmax"><code>MinMax</code></a></p>
                                    <h3><a id="日历时间" class="anchor" aria-hidden="true" href="#日历时间"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>日历时间</h3>
                                    <p><code>.calendar</code> 来显示日历时间</p>
                                    <p>plugin <a href="Plugin.html#calendar"><code>Calendar</code></a></p>
                                    <h3><a id="更新语言配置" class="anchor" aria-hidden="true" href="#更新语言配置"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>更新语言配置</h3>
                                    <p><code>.updateLocale</code> 来更新语言配置的属性</p>
                                    <p>plugin <a href="Plugin.html#updateLocale"><code>UpdateLocale</code></a></p>
                                    <!--/scrapbook-capture-selected-->
                                </article>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script src="https://unpkg.com/dayjs"></script>
    <script src="https://unpkg.com/dayjs@1.8.19/plugin/weekday.js"></script>
    <script src="https://unpkg.com/dayjs@1.8.19/plugin/weekYear.js"></script>
</body>

</html>